import React from "react";
import { Button, Result } from "antd";

const ForbiddenPage = () => {
  const goToHome = () => {
    window.location.href = "/";
  };

  return (
    <div style={{ padding: "50px" }}>
      <Result
        status="403"
        title="403"
        subTitle="抱歉，您没有权限访问此页面。"
        extra={
          <Button type="primary" onClick={goToHome}>
            返回主页
          </Button>
        }
      />
    </div>
  );
};

export default ForbiddenPage;
